<%@ page language="java"  pageEncoding="UTF-8" %>
<%@ page import="com.shopping.modean.*" %>
<%@ page import="com.shopping.service.*" %>
<%@ page import="java.util.*" %>

<%
	request.setCharacterEncoding("UTF-8");
	int id = Integer.parseInt(request.getParameter("id"));
	Product p = ProductService.getInstance().detail(id);
	
	
%>

<!DOCTYPE html>
<html>
<head>
  <title>产品详情</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <script type="text/javascript" src="script/regcheckdata.js"></script>
</head>

<body>
	<center>产品展示</center>
  	<img alt="<%=p.getDescr() %>" src="images/20180625091958998.jpg" width="90" border="0">
	<p><%=p.getDescr() %></p>
	<p><%=p.getNormalPrice() %></p>
	<p><%=p.getMemberPrice() %></p>
  	<a href="buy.jsp?id=<%=id %>">加入购物车</a>
</body>
</html>